babl: make pixel-count instrumentation opt-in
authorØyvind Kolås <pippin@gimp.org>
Wed, 17 Jan 2018 02:46:59 +0000 (03:46 +0100)
committerØyvind Kolås <pippin@gimp.org>
Wed, 17 Jan 2018 02:49:32 +0000 (03:49 +0100)
commit20d3b800dc7972897a5fa89bb664227c7d043111
treee4b3cab2225b81da93bc3da507c0b1c5e8362ac2
parenta7dd5f6d726a16455a9b02bfbb17c1d4a3459846
babl: make pixel-count instrumentation opt-in

Checking if an integer is 0/1 is lower overhead than incrementing a long stored
kt a memory location. As a side effect, the entries in
~/.cache/babl/babl-fishes will not be sorted by most used to least used unless
the BABL_INSTRUMENT environment variable is set to a value.
babl/babl-fish-path.c
babl/babl-internal.h